package com.yingdong.centerserver.inner.handler;

import com.yingdong.centerserver.inner.message.GameMessage;
import com.yingdong.centerserver.opcode.Dispatcher;

public class UserLogoffHandler extends CenterServerHandler {

	@Override
	public void handle(int sessionId, GameMessage msg) {
		Dispatcher.centerServerSessionMap.remove(sessionId);
		for (int key : Dispatcher.userIdMap.keySet()) {
			int v = Dispatcher.userIdMap.get(key);
			if (v == sessionId)
				Dispatcher.userIdMap.remove(key);
		}
	}

}
